//
//  ViewController.m
//  03-Runtime-Method-Swizzle
//
//  Created by J on 16/2/20.
//  Copyright © 2016年 J. All rights reserved.
//

#import "ViewController.h"
#import "Person.h"
#import <objc/runtime.h>
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    Method method1 = class_getInstanceMethod([Person class], @selector(run));
//    Method method2 = class_getInstanceMethod([Person class], @selector(study));
//
//    method_exchangeImplementations(method1, method2);
//    Person* person =[Person new];
//    [person run];
//    [person study];
    NSString* value = nil;
    NSMutableDictionary* dict = [NSMutableDictionary dictionary];
    dict[@"name"] = value;
    NSLog(@"%@",dict);

}

- (void)dealloc{
    NSLog(@"%s",__func__);
}



@end
